package com.mmall.service;

import com.mmall.common.ServerResponse;
import org.apache.ibatis.annotations.Param;

/**
 * @Author wangtengyu
 * @Create 2018-01-16-10:12
 */

public interface ICartService {
    ServerResponse add(Integer userId, Integer productId, Integer count);

    ServerResponse update(Integer userId, Integer productId, Integer count);

    ServerResponse deleteProduct(Integer id, String productIds);

    ServerResponse list(Integer userId);

    ServerResponse selectOrUnSelect(@Param("userId") Integer userId, @Param("productId") Integer productId, @Param("checked") Integer checked);

    ServerResponse getCartProductCount(Integer userId);
}
